package org.tarasov.chapter2

/**
 * This source code free and open source
 * Author: Dmitriy Tarasov
 * Date: 04/04/11
 * Time: 22:37
 */
class Book {
    String title
}

def groovyBook = new Book()

groovyBook.setTitle('title')
assert groovyBook.getTitle() == 'title'

groovyBook.title = 'groovy in action'
assert groovyBook.title == 'groovy in action'
